<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>比较两个数或对象是否完全相等</title>
</head>
<body>
  <script>
    let t1 = 12
    let t2 = 12
    console.log(t1 === t2);
    let t3 = {
      name: '张三'
    }
    let t4 = {
      name: '张三'
    }
    for (let k in t3) {
      console.log(t3[k] === t4[k]);
    }
  </script>
</body>
</html>